<?php session_start(); header("Cache-control: private");

	if( isset($_GET['esco']) )
		$_SESSION['username'] = 'noSet';
	/*if( session_id() == '' )
	{
		echo 'session_id() empty';
	}else{
		echo session_id();
	}
	
	*/
	
	/*
	$sessPath   = ini_get('session.save_path'); 
	$sessCookie = ini_get('session.cookie_path'); 
	$sessName   = ini_get('session.name'); 
	*/
	if ( isset ( $_POST['userLogin'] ) && strlen ( $_POST['userLogin'] ) > 0 ) {
		$_SESSION['username'] = $_POST['userLogin'];
		$_SESSION['pws'] = md5( $_POST['pwdLogin'] );
	}
	
	
	
?>
<!DOCTYPE html>
<html dir="ltr" lang="en-US">
	<!-- Mirrored from livedemo00.template-help.com/wordpress_34098/ by HTTrack Website Copier/3.x [XR&CO'2010], Thu, 26 May 2011 14:15:54 GMT --> 	<!-- Added by HTTrack -->
	<meta http-equiv="content-type" content="text/html;charset=UTF-8">
	<!-- /Added by HTTrack -->
	<head>
		<title>Brodcast WorldWide Media</title>
		<meta name="keywords" content=" , TV channel , "  />
		<meta name="description" content=" | "  />
		<meta charset="UTF-8"  />
		<link rel="profile" href="http://gmpg.org/xfn/11"  />
		<link rel="index" title="TV channel" href="index.php"  />
		<link rel="icon" href="wp-content/themes/theme1273/favicon.ico" type="image/x-icon"  />
		<link rel="icon" href="wp-content/themes/theme1273/favicon.ico" type="image/x-icon"  />
		<link rel="pingback" href="xmlrpc.php"  />
		<link rel="alternate" type="application/rss+xml" title="TV channel" href="indexd784.html?feed=rss2"  />
		<link rel="alternate" type="application/atom+xml" title="TV channel" href="index6e0a.html?feed=atom"  />
		<!-- The HTML5 Shim is required for older browsers, mainly older versions IE --> 		<!--[if lt IE 9]>
		<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]--> 		<!--[if lt IE 7]>
		<div style=' clear: both; text-align:center; position: relative;'>
			<a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode">
				<img src="http://www.theie6countdown.com/images/upgrade.jpg" border="0" Â alt=""  />
				</a>
			</div>
		<![endif]-->
		<link rel="stylesheet" type="text/css" media="all" href="wp-content/themes/theme1273/style.css"  />
		<link rel="stylesheet" type="text/css" media="all" href="wp-content/themes/theme1273/css/prettyPhoto.css"  />
		<link rel="alternate" type="application/rss+xml" title="TV channel Â» Feed" href="indexd784.html?feed=rss2"  />
		<link rel="alternate" type="application/rss+xml" title="TV channel Â» Comments Feed" href="indexa6da.html?feed=comments-rss2"  />
		<link rel='stylesheet' id='tabbed-widgets-css'  href='wp-content/plugins/tabbed-widgets/css/tabbed-widgets41fe.css?ver=3.0.1' type='text/css' media='all'  />
		<link rel='stylesheet' id='contact-form-7-css'  href='wp-content/plugins/contact-form-7/stylesb2da.css?ver=2.4.3' type='text/css' media='all'  />
		<link rel='stylesheet' id='wp-pagenavi-css'  href='wp-content/plugins/wp-pagenavi/pagenavi-css44fd.css?ver=2.70' type='text/css' media='all'  />
		<script type='text/javascript' src='wp-content/themes/theme1273/js/jquery-1.6.minf24c.js?ver=1.6'></script>
        <script type='text/javascript' src='wp-includes/js/Support.js'></script>
                <script type='text/javascript' src='wp-includes/js/ValidateForm.js'></script>
		<script type='text/javascript' src='wp-content/themes/theme1273/js/superfishb493.js?ver=1.4.8'></script>
		<script type='text/javascript' src='wp-content/themes/theme1273/js/supersubs8c2f.js?ver=0.2b'></script>
		<script type='text/javascript' src='wp-content/themes/theme1273/js/jquery.prettyPhoto19ce.js?ver=3.0.3'></script>
		<script type='text/javascript' src='wp-content/themes/theme1273/js/jquery.loader5152.js?ver=1.0'></script>
		<script type='text/javascript' src='wp-content/themes/theme1273/js/cufon-yuifaf8.js?ver=1.09i'></script>
		<script type='text/javascript' src='wp-content/themes/theme1273/js/Futura_BdCn_BT_400.font5152.js?ver=1.0'></script>
		<script type='text/javascript' src='wp-content/themes/theme1273/js/cufon-replace5152.js?ver=1.0'></script>
		<link rel="EditURI" type="application/rsd+xml" title="RSD" href="xmlrpc0db0.php?rsd"  />
		<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="wp-includes/wlwmanifest.xml"  />
		<link rel='index' title='TV channel' href='http://livedemo00.template-help.com/wordpress_34098'  />
		<meta name="generator" content="WordPress 3.0.1"  />
        <?php include 'wp-includes/php/DBManager.class.php';?>
		<script type="text/javascript">
			noLogJS = false;
		// initialise pluginsjQuery(function(){// main navigation initjQuery("ul.sf-menu").supersubs({ minWidth: 12, // minimum width of sub-menus in em units maxWidth: 27, // maximum width of sub-menus in em units extraWidth: 1 // extra width can ensure lines don't sometimes turn over // due to slight rounding differences and font-family }).superfish();jQuery('ul.sf-menu').superfish({delay: 1000, // one second delay on mouseout animation: {opacity:'show',height:'show'}, // fade-in and slide-down animation speed: 'normal', // faster animation speed autoArrows: false, // generation of arrow mark-up (for submenu) dropShadows: false // drop shadows (for submenu)});// prettyphoto initjQuery("#gallery .portfolio a[rel^='prettyPhoto'], .video a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'facebook',slideshow:false,autoplay_slideshow: false,show_title: true,overlay_gallery: false});jQuery("#sidebar-right .widget:last-child").addClass("last");});</script>
		<!-- Custom CSS -->
		</head>
	<body class="home blog cat-13-id">
		<div id="main">
			<!-- this encompasses the entire Web site -->
			<div id="tail-right"></div>
			<header id="header">
				<div class="header-bg">
					<div class="container">
						<div class="logo">
							<a href="index.php">
								<a href="index.php"></a>
								</a>
							<a href="index.php">
								<img src="wp-content/themes/theme1273/images/temp/logo.png" alt="TV channel" title="">
								</a>
							<p class="description"></p>
							</div>
						<nav class="primary">
							<ul id="topnav" class="sf-menu">
								<li id="menu-item-194" class="menu-item menu-item-type-custom current-menu-item current_page_item menu-item-home menu-item-194">
									<a href="index.php">Home</a>
									</li>
								<li id="menu-item-280" class="menu-item menu-item-type-post_type menu-item-280">
									<a href="listaFilm.php">film</a>
									<ul class="sub-menu">
                                        <li id="menu-item-337" class="menu-item menu-item-type-taxonomy menu-item-337">
                                            <a href="listaFilm.php?genre=comedy">Comedy</a>
                                            </li>
                                        <li id="menu-item-338" class="menu-item menu-item-type-taxonomy menu-item-338">
                                            <a href="listaFilm.php?genre=drama%romance">Drama &amp; Romance</a>
                                            </li>
                                        <li id="menu-item-339" class="menu-item menu-item-type-taxonomy menu-item-339">
                                            <a href="listaFilm.php?genre=family%fantasy">Family &amp; Fantasy</a>
                                            </li>
                                        <li id="menu-item-339.1" class="menu-item menu-item-type-taxonomy menu-item-339">
                                            <a href="listaFilm.php?genre=action">Action</a>
                                            </li>
                                        <li id="menu-item-339.2" class="menu-item menu-item-type-taxonomy menu-item-339">
                                            <a href="listaFilm.php?genre=thriller%horror">Thriller &amp; Horror</a>
                                            </li>
                                    </ul>
									</li>
								<li id="menu-item-77" class="menu-item menu-item-type-post_type menu-item-77">
									<a href="SerieTv.php?genre=none">Serie tv</a>
									</li>
								<li id="menu-item-288" class="menu-item menu-item-type-post_type menu-item-288">
									<a href="listaFilm.php?genre=animation">Kids</a>
									</li>
								<li id="menu-item-179" class="menu-item menu-item-type-post_type current_page_parent menu-item-179">
									<a href="listaFilm.php?genre=adult">HotZone</a>
									</li>
								<li id="menu-item-289" class="menu-item menu-item-type-post_type menu-item-289">
									<a href="listaFilm.php?genre=documentary">Documentaries</a>
									</li>
								<li id="menu-item-287" class="menu-item menu-item-type-post_type menu-item-287">
									<a href="community.php">Community</a>
									</li>
								<li id="menu-item-59" class="menu-item menu-item-type-post_type menu-item-59">
									<a href="javascript:writeContacts()" >Contacts</a>
									</li>
								</ul>
							</nav>
						<!--.primary-->
						<div id="top-search">
							<form method="get" action="search.php" class="searchform" onSubmit=" return validateSearch() " >
								<span class="searching">
									<input type="text" name="title" />
									</span>
								<input type="submit" value="" class="submit">
								</form>
							</div>
						<div id="widget-header">
							<!-- Widgetized Header -->
							</div>
						<!--#widget-header-->
						</div>
					<!--.container-->
					</div>
				</header>
			<div class="primary_content_wrap clearfix">
				<div class="container">
					<aside id="sidebar">
						<div class="inner">
							<div id="categories-4" class="widget widget_categories">
								<h3>Most Popular Movies</h3>
								<ul>
									<?php include'wp-includes/php/MostPopular.php';?>
							  </ul>
						  </div>
							<div id="archives-3" class="widget widget_archive">
								<h3>Archives</h3>
                            
								<ul>
									<li>
										<a href='listaFilm.php?year=2010' title='Year 2011'>Year 2010</a>
								  </li>
									<li>
										<a href='listaFilm.php?year=2009' title='Year 2009'>Year 2009</a>
								  </li>
									<li>
										<a href='listaFilm.php?year=2008' title='Year 2008'>Year 2008</a>
								  </li>
									<li>
										<a href='listaFilm.php?year=2007' title='Year 2007'>Year 2007</a>
								  </li>
							  </ul>
						  </div>
							<div id="cmeta" class="widget widget_cmeta">
                            	<h3>Help and support</h3>
                                <ul>
									<li><a href="javascript:writeOffers()" title="Offers" >Offers</a></li>
                                    <li><a href="javascript:writeAccess()" title="Access" >Access</a></li>
                                    <li><a href="javascript:writeRegistration()" title="Registration" >Registration</a></li>
                                    <li><a href="javascript:writeRequirements()" title="Requirements"  >Requirements</a></li>
                                    <li><a href="javascript:writePurchase()"title="PurchaseRequirements" >Purchase and viewing requirements</a></li>
                                    <li><a href="javascript:writeRecharge()" title="Recharge" >Recharge Account</a></li>
							  </ul>
                            </div>
							<div id="recent-posts-3" class="widget widget_recent_entries">
							  <h3>Coming Soon...</h3>
                              <ul>
                              	<?php include'wp-includes/php/ComingSoon.php';?>
                               </ul>
						  </div>
					  </div>
				  </aside>
					<div id="content">
						<article id="post-307" class="post-307 post type-post hentry category-vestibulum-libero-nisl tag-accusan tag-sed tag-voluptatem cat-13-id">
							<header>
								<h2 class="title" id="contentTitle">
									<a href="#" title="News" rel="bookmark">My Profile</a>
							  </h2>
							  <div class="post-meta"></div>
								<!--.post-meta-->
						  </header>
							<div class="post-content">
								<div class="featured-thumbnail"></div>
								<div class="excerpt" id="contentPage">
                                <?php
								
									$db = new DBManager ( 'localhost', 'root', '', 'iumus' );
									$query = "SELECT * FROM utente WHERE Username = '".$_SESSION['username']."'";
									$result = $db->executeQuery ( $query );
									
									echo '<form method="post" action="changePass.php" onsubmit="return matchpass ();">';
									while( $row = mysql_fetch_array ( $result ) ) {
										echo '<table>';
										echo '<tr>';
										echo '<td colspan="3">Username:&nbsp;</td><td>'.$row['Username'].'</td>';
										echo '</tr>';
										echo '<tr>';
										echo '<td colspan="3">Name:&nbsp;</td><td>'.$row['Nome'].'</td>';
										echo '</tr>';
										echo '<tr>';
										echo '<td colspan="3">Surname:&nbsp;</td><td>'.$row['Cognome'].'</td>';
										echo '</tr>';
										echo '<tr>';
										echo '<td colspan="3">E-mail:&nbsp;</td><td>'.$row['Email'].'</td>';
										echo '</tr>';
										echo '<tr>';
										echo '<td>New password:&nbsp;</td>';
										echo '<td>';
										echo '<span style="background: url(wp-content/themes/theme1273/images/search-text.gif) no-repeat left top;
font-size: 12px; height: 21px; width: 150px; margin-right: 2px; float: left;">';
										echo '<input style="width: 145px; background: none; border: none; padding: 3px 5px; font-size: 12px;" type="password" name="pw" id="pw"/>';
										echo '</span>';
										echo '</td>';
										echo '<td>Confirm new password:&nbsp;</td>';
										echo '<td>';
										echo '<span style="background: url(wp-content/themes/theme1273/images/search-text.gif) no-repeat left top;
font-size: 12px; height: 21px; width: 150px; margin-right: 2px; float: left;">';
										echo '<input style="width: 145px; background: none; border: none; padding: 3px 5px; font-size: 12px;" type="password" name="pw_" id="pw_"/>';
										echo '</span>';
										echo '</td>';
										echo '</tr>';
										echo '<tr>';
										echo '<td colspan="4" style="text-align: right;">';
										echo '<input style="color: white; background-color: black; border: none; cursor: pointer; background-image: url(wp-content/themes/theme1273/images/submit.png); width: 62px; height: 21px;" type="submit" value=""/>';
										echo '</td>';
										echo '</tr>';
										echo '</table>';
									}
									echo '<input type="hidden" name="send" value="'.$_SESSION['username'].'"/>';
									echo '</form>';
									
									$query = "SELECT COUNT(*) FROM watchlist WHERE idUser = '".$_SESSION['username']."'";
									$result = $db->executeQuery ( $query );
									
									while( $row = mysql_fetch_array ( $result ) ) {
										echo '<table>';
										echo '<tr>';
										echo '<td>Watchlist:&nbsp;</td><td>'.$row[0].'</td>';
										echo '</tr>';
										
									}
									
									$query = "SELECT COUNT(*) FROM commenti WHERE idUser = '".$_SESSION['username']."'";
									$result = $db->executeQuery ( $query );
									
									while( $row = mysql_fetch_array ( $result ) ) {
										echo '<tr>';
										echo '<td>Comments:&nbsp;</td><td>'.$row[0].'</td>';
										echo '</tr>';
										
									}
									
									$query = "SELECT COUNT(*) FROM filmnoleggio WHERE idUser = '".$_SESSION['username']."'";
									$result = $db->executeQuery ( $query );
									
									while( $row = mysql_fetch_array ( $result ) ) {
										echo '<tr>';
										echo '<td>Leased:&nbsp;</td><td>'.$row[0].'</td>';
										echo '</tr>';
										echo '</table>';
										
									}
								
                                ?>
                                <script type="text/javascript">
									function matchpass () {
										if ( $ ( '#pw' ).val().length == 0 ) {
											alert ( 'Please note, you did not enter the password!' );
											return false; 
										}
											
										if ( $ ( '#pw_' ).val().length == 0 ) {
											alert ( 'Please note, you did not enter the password confirmation!' );
											return false; 
										}
														
										if ( $ ( '#pw' ).val()  != $ ( '#pw_' ).val() ) {
											alert ( 'Please note, the passwords do not match!' );
											return false; 
										}
										
										return true;											
									}
								</script>
								</div>
								</div>
							</article>
						<nav class="oldernewer">
							<!--.older-->
							<div class="newer"></div>
							<!--.newer-->
							</nav>
						<!--.oldernewer-->
						</div>
					<!--#content-->
				  <div id="sidebar-right">
						<div id="text-7" class="widget widget_text">
                        <?php include'wp-includes/php/loginOrLogout.php';?>
							
					</div>
						<div id="wp_bannerize-3" class="widget widget_wp_bannerize">
							<div class="wp_bannerize">
								<ul>
									<li >
										<a rel="nofollow" target="_blank" href="http://www.unisa.it">
											<img width="185" height="258" alt="" src="wp-content/uploads/2011/05/banner.jpg"  />
									  </a>
							  </ul>
						  </div>
					</div>
						<div id="tag_cloud-3" class="widget widget_tag_cloud">
							<h3>Top Rated</h3>
							<div style="text-align:justify">
                            <?php include'wp-includes/php/TopRated.php';?>

						  </div>
					</div>
				  </div>
			  </div>
				<!--.container-->
		  </div>
			<footer id="footer">
				<div class="container">
					<!--Widgetized Footer-->
					<p>
Brodcast WorldWide Media is proudly powered by
<a href="#">AcumeTattico</a>
						<br  />
						<a href="indexcc4d.html?feed=rss" rel="nofollow">Entries (RSS)</a><br  />
						<!-- {%FOOTER_LINK} -->
				  </p>
					</div>
				<!--.container-->
				</footer>
			</div>
		<!--#main-->
		<script type='text/javascript'>
/* <![CDATA[ */var wpBannerizeMainL10n = {ajaxURL: "http://livedemo00.template-help.com/wordpress_34098/wp-content/plugins/wp-bannerize/ajax_clickcounter.php"};/* ]]> */
</script>
		<script type='text/javascript' src='wp-content/plugins/wp-bannerize/js/wp_bannerize_frontendad05.js?ver=1.4'></script>
		<script type='text/javascript' src='wp-content/plugins/tabbed-widgets/js/jquery-ui-custom.min41fe.js?ver=3.0.1'></script>
		<script type='text/javascript' src='wp-content/plugins/tabbed-widgets/js/jquery-cookie.min41fe.js?ver=3.0.1'></script>
		<script type='text/javascript' src='wp-content/plugins/contact-form-7/jquery.formd20f.js?ver=2.52'></script>
		<script type='text/javascript' src='wp-content/plugins/contact-form-7/scriptsb2da.js?ver=2.4.3'></script>
		<script type="text/javascript">var $rotateoptions = new Array();$rotateoptions[2] = new Array();$rotateoptions[2]["style"] = "";$rotateoptions[2]["rotate"] = 0;$rotateoptions[2]["random_start"] = 0;$rotateoptions[2]["start_tab"] = 0;$rotateoptions[2]["interval"] = 10000;$rotateoptions[3] = new Array();$rotateoptions[3]["style"] = "tabs";$rotateoptions[3]["rotate"] = 0;$rotateoptions[3]["random_start"] = 0;$rotateoptions[3]["start_tab"] = 0;$rotateoptions[3]["interval"] = 10000;$rotateoptions[4] = new Array();$rotateoptions[4]["style"] = "tabs";$rotateoptions[4]["rotate"] = 0;$rotateoptions[4]["random_start"] = 0;$rotateoptions[4]["start_tab"] = 0;$rotateoptions[4]["interval"] = 10000;</script>
		<script type="text/javascript" src="wp-content/plugins/tabbed-widgets/js/init-plugin.js"></script>
		<!-- this is used by many Wordpress features and for plugins to work proporly --> 		<!-- Show Google Analytics -->
		<script type="text/javascript"> 
			Cufon.now();
			if (noLogJS)
				window.alert("User not enabled. You please try to use a valid account or register on our site.");
        </script>
		</body>
	<!-- Mirrored from livedemo00.template-help.com/wordpress_34098/ by HTTrack Website Copier/3.x [XR&CO'2010], Thu, 26 May 2011 14:16:22 GMT --> 	<!-- Added by HTTrack -->
	<meta http-equiv="content-type" content="text/html;charset=UTF-8">
	<!-- /Added by HTTrack -->
</html>